package com.wzy.mapper;

import com.wzy.entity.Province;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wzy
 * @since 2021-02-09
 */
@Mapper
public interface ProvinceMapper extends BaseMapper<Province> {

    public int inserts(Province province);

    public boolean delete(Long provinceId);

    public int update(Province province);

    public Province selectById(Integer provinceId);

    /**
     * 查找省份列表。
     *
     * @param skip
     * @param take
     * @return
     */
    public List<Province> list(@Param("skip") Integer skip, @Param("take") Integer take);

    public Province selectByName(String provinceName);

    /**
     * 查找省份记录数
     *
     * @return省份记录数
     */
    public int size();

}
